import axios from 'axios';
// 获取所有友情链接列表
let list = (params) => axios.get('/link/list', { params });
//编辑友情链接
let edit=(link_id,data) => axios.put(`/link/${link_id}`, data);
// 添加友情链接
let add = (data) => axios.post('/link/', data);
// 启用/禁用友情链接
let usable = (data) => axios.post('/link/usable', data);
//删除指定id的友情链接
let remove = (link_id,params) => axios.delete(`/link/${link_id}`, {params});
export default {
	list,
	edit,
	add,
	usable,
	remove
}
